{% extends 'base' %}
{% block main %}
{% include 'stats_chart' %}
<hr/>
{% include 'latency_chart' %}
{% endblock %}

{% block additional_script %}
<script type="application/javascript">
  var chartParams = {'type': 'STATS', 'aggregationType': 'DAILY'};
  var latencyChartParams = {'type': 'LATENCY', 'aggregationType': 'DAILY'};
  $(document).ready(function () {
    drawChart(chartParams, "stats_chart");
    drawChart(latencyChartParams, "latency_chart");
    $('#refresh-chart').click(function () {
      refreshStatsChart(chartParams, "stats_chart");
    });
    $('#refresh-latency-chart').click(function () {
      refreshLatencyChart(latencyChartParams, "latency_chart");
    });
    attachChartEventListeners();
  });
</script>
{% endblock %}

